@import './base.css';

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  font-weight: normal;
}

a,
.green {
  text-decoration: none;
  color: hsla(160, 100%, 37%, 1);
  transition: 0.4s;
  padding: 3px;
}

@media (hover: hover) {
  a:hover {
    background-color: hsla(160, 100%, 37%, 0.2);
  }
}

@media (min-width: 1024px) {
  body {
    display: block; /* 避免整页垂直居中，保持自然阅读流 */
  }
}

/* 舒适的主内容容器与基础排版 */
main,
.app-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0.5rem 0 1rem;
}

p {
  margin: 0.75rem 0 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
